package com.github.pig.admin.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
@Data
@TableName("sys_label")
public class SysLabel extends Model<SysLabel> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String name;

    private Integer createUser;

    private Date createTime;

    private Integer delFlag;

    private Integer updateUser;

    private Date updateTime;

    private Integer parentId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysLabel{" +
                "labelid=" + id +
                ", name='" + name + '\'' +
                ", createUser=" + createUser +
                ", createTime=" + createTime +
                ", delFlag=" + delFlag +
                ", updateUser=" + updateUser +
                ", updateTime=" + updateTime +
                ", parentId=" + parentId +
                '}';
    }
}